package com.zoo.diannaopeijian.mapper;

import com.zoo.diannaopeijian.domain.Diannaopeijian;
import com.zoo.diannaopeijian.domain.DiannaopeijianExample;
import java.util.List;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface DiannaopeijianMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table diannaopeijian
     *
     * @mbggenerated
     */
    @SelectProvider(type=DiannaopeijianSqlProvider.class, method="countByExample")
    int countByExample(DiannaopeijianExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table diannaopeijian
     *
     * @mbggenerated
     */
    @DeleteProvider(type=DiannaopeijianSqlProvider.class, method="deleteByExample")
    int deleteByExample(DiannaopeijianExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table diannaopeijian
     *
     * @mbggenerated
     */
    @Insert({
        "insert into diannaopeijian (SysName, SysLogo)",
        "values (#{sysname,jdbcType=VARCHAR}, #{syslogo,jdbcType=VARCHAR})"
    })
    int insert(Diannaopeijian record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table diannaopeijian
     *
     * @mbggenerated
     */
    @InsertProvider(type=DiannaopeijianSqlProvider.class, method="insertSelective")
    int insertSelective(Diannaopeijian record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table diannaopeijian
     *
     * @mbggenerated
     */
    @SelectProvider(type=DiannaopeijianSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="SysName", property="sysname", jdbcType=JdbcType.VARCHAR),
        @Result(column="SysLogo", property="syslogo", jdbcType=JdbcType.VARCHAR)
    })
    List<Diannaopeijian> selectByExample(DiannaopeijianExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table diannaopeijian
     *
     * @mbggenerated
     */
    @UpdateProvider(type=DiannaopeijianSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") Diannaopeijian record, @Param("example") DiannaopeijianExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table diannaopeijian
     *
     * @mbggenerated
     */
    @UpdateProvider(type=DiannaopeijianSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") Diannaopeijian record, @Param("example") DiannaopeijianExample example);
}